#include <cstdio>

int main() {
	for (int x=0; x<=1000; x++) {
		int a = x*x;
		if (a-x >= 1800 && a-x <= 1900) {
			printf("%d\n", a);
			break;
		}
	}
	
	return 0;
}
